package com.github_dididipapa.mall.product.dao;

import com.github_dididipapa.mall.product.dto.BrandRelationDto;
import com.github_dididipapa.mall.product.dto.CategoryDto;
import com.github_dididipapa.mall.product.entity.CategoryBrandRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 品牌分类关联
 * 
 * @author dididipapa
 * @email not_found@404.com
 * @date 2025-04-26 18:14:11
 */
@Mapper
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {


    void updateCategory(@Param("catId") Long catId,@Param("name") String name);

    List<BrandRelationDto> getBrandRelationByCatId(@Param("catId") Long catId);

    List<CategoryBrandRelationEntity> getCateGoryDtosByBrandId(@Param("brandId") Long brandId);
}
